package com.design.behavior.template.cainiao;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @ProjectName: design
 * @Package: com.design.behavior.template.cainiao
 * @ClassName: TemplatePatternDemo
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/9/22 0022 23:24
 */
//步骤3
public class TemplatePatternDemo {
    public static void main(String[] args) {

        Game game = new Cricket();
        game.play();
        System.out.println();
        game = new Football();
        game.play();

    }
}
